-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standardize actors colors #773
base: master
Are you sure you want to change the base?
Conversation
…o 1d in the function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Clarkszw,
Thank you for starting this.
See below for some comments:
-
Concerning docstring, I recommend you looking at the numpy style guide. Many python projects follow those rule which you are not following right now on this PR. here the link:
https://numpydoc.readthedocs.io/en/latest/format.html -
Why red? I recommend you to normalize your color values to go from [0-255] to [0-1]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Clarkszw,
it looks much better. I need to play a bit more with this PR to make sure we do not fall in weird cases.
Thank you for this and I will give you an update next week.
also, can you solve the conflict in this PR ? thank you |
I have no idea why it will happen..But the conflict has been fixed now:) |
I have added a new function
`normalize_color()' in utils.py for #458check_color_range()
It does two things:
change it to red color [1, 0, 0] and print the out of bounds informationnormalize the color array.I have written an unit test for this function and added in test_utils.py
All tests in test_actors.py and test_utils.py are passed :)